package com.shop.feign;

import com.shop.annotation.RequireRoles;
import com.shop.model.PageParam;
import com.shop.model.vo.ElasticSearchLog;
import com.shop.model.vo.Rsp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient("log")
public interface ElasticsearchFeign {

    //@RequireRoles(roles = {"merchant"})
    @PostMapping("getLog")
    public Rsp getLog(@RequestBody PageParam<ElasticSearchLog> pageParam);

    @PostMapping("getLogPV")
    public Rsp getLogPV(@RequestBody PageParam<ElasticSearchLog> pageParam);

}
